<form class="checkoutform" action="{:U('update')}" method="post">
    <input type="hidden" name="id" value="{$info.id}" >
    <div class="form-group">
        <label class="control-label">表单名称</label>
        <div>
            <input datatype="*" class="form-control" value="{$form.name}"  nullmsg="名称不能为空" errormsg="不支持特殊字符" name="name" type="text" id="name" size="70" >
        </div>
    </div>

    <div class="form-group">
        <label class="control-label">表单描述</label>
        <div>
            <textarea class="form-control" name="remark" type="text" id="remark" rows="2" placeholder="请输入表单描述">{$form.remark}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label">表格分类</label>
        <div class="row">
            <div class="col-sm-12" id="categoryBox">
                <select class="form-control" datatype="*"  nullmsg="请选择！" name="formcategory_id" id="formcategory_id">
                    <option value="">请选择表格分类</option>
                    <volist name="formcategorylist" id="vo">
                        <option <?php if($vo['id']==$form['formcategory_id']){echo('selected');} ?> value="{$vo.id}">{:getdeepstr($vo['cl'])}{$vo.name}</option>
                    </volist>
                </select>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div>
            <html:listselect class="btn btn-sm btn-success" selected="form['rule']" name="rule" multiple="1" url="{:U('Integral_rule/select')}" title="选择积分规则" />
        </div>
    </div>
</form>
<div id="categoryBoxpages">
</div>
<form id="categoryBoxform" action="{:U('Formcategory/getcategory')}">
</form>
<script> $(window).trigger('load'); </script>